<template>
  <el-card shadow="never">
    <div slot="header" class="card-header">
      <span>统计表数据展示</span>
      <el-button type="primary" @click="$basefn.exportExcel('#out-table')">
        下载数据
      </el-button>
    </div>
    <el-table id="out-table" :data="tableData" border style="width: 100%">
      <el-table-column prop="columnA" label="渠道编号"> </el-table-column>
      <el-table-column prop="columnB" label="用户所在省份"> </el-table-column>
      <el-table-column prop="columnC" label="加入时间时间"> </el-table-column>
      <el-table-column prop="columnD" label="管理时间"> </el-table-column>
    </el-table>
    <div class="pagination">
      <Pagination />
    </div>
  </el-card>
</template>

<script>
import Pagination from './Pagination'
export default {
  components: {
    Pagination
  },

  data() {
    return {
      tableData: [
        {
          columnA: 'A107',
          columnB: '北京',
          columnC: '3年',
          columnD: '2020.3'
        },
        {
          columnA: 'A106',
          columnB: '北京',
          columnC: '3年',
          columnD: '2020.3'
        },
        {
          columnA: 'A105',
          columnB: '北京',
          columnC: '4年',
          columnD: '2020.4'
        },
        {
          columnA: 'A104',
          columnB: '北京',
          columnC: '2年',
          columnD: '2020.7'
        },
        {
          columnA: 'A103',
          columnB: '北京',
          columnC: '3年',
          columnD: '2020.8'
        },
        {
          columnA: 'A102',
          columnB: '北京',
          columnC: '1年',
          columnD: '2020.3'
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.pagination {
  float: right;
  margin: 10px;
}
</style>
